import request from '@/utils/request'

// 查询运营管理应急处理列表
export function listEmergency(query) {
    return request({
        url: '/server/emergency/list',
        method: 'get',
        params: query
    })
}

// 查询运营管理应急处理详细
export function getEmergency(emergencyId) {
    return request({
        url: '/server/emergency/' + emergencyId,
        method: 'get'
    })
}

// 新增运营管理应急处理
export function addEmergency(data) {
    return request({
        url: '/server/emergency',
        method: 'post',
        data: data
    })
}

// 修改运营管理应急处理
export function updateEmergency(data) {
    return request({
        url: '/server/emergency',
        method: 'put',
        data: data
    })
}

// 删除运营管理应急处理
export function delEmergency(emergencyId) {
    return request({
        url: '/server/emergency/' + emergencyId,
        method: 'delete'
    })
}

// 导出运营管理应急处理
export function exportEmergency(query) {
    return request({
        url: '/server/emergency/export',
        method: 'get',
        params: query
    })
}
